First version of for loop.