update calculator.rb