for loop coding