Simple calculator written in ruby