modification calc.rb