Exercise "Input validation and error handling "