added 3 in ruby