attempt at making a calculator application in Ruby