Making a basic calculator in Ruby