updated calculator.rb