Simple calculator written in Ruby