created a for loop

created a for loop