#21 Added exception handling for integer input.