write a calculator program in ruby