new code in ruby