ruby 2 into 9 lines