a basic calculator in ruby