final version of calculator.rb

Please accept my final version of calculator.rb file. Thanks!