Created for loop

Created for loop