Attempt at making a calculator application in Ruby