Use .first(10) instead of a range loop