For loop

added more comments