Using var on for loops