Modified calculator.rb & completed rps.rb