Lines 22 and 23 can be joined, #each returns an enumerable