finished 18 in ruby