1.Change to range-based loop