adding 3 problems in ruby