first pass at 34 in ruby