lab work for loops