The end result isn't different, but it's better to declare the vars outside of the loop to avoid confusion. Same below around line 84.