Update calculator.rb

quick review