James wrote: > Why did you move the variable declaration? Because the variable is only used inside the loop. Moving the declaration to the top of the loop is the right scoping. - Dan