Added an exception handler for entering a letter instead of a number.