completed 17 in ruby