for loop explanation