Prefer `lines.each`, for loops are only needed if you need the iterator variable to exist in the outer scope.