Error handling when dealing with invalid input
Error handling when dealing with invalid input