Fix "for" instruction

Misunderstood "for" instruction initially.

Create a local variable inside for loop that increments 0, 1, 2.