first for loop explanation