Added verification for user input in calculator.rb