Added exception handling for input that is not numbers