ruby 9 solved, 15 lines