ruby 10 solved, 4 lines