Simple calculator in Ruby