created for loops.

finished while loops