while and each

while and each