Ranged for loop instead of iterator