Refactor: User rows.each_with_index