added number verification to calculator.rb