Working while loops
Equivalent to other loops
Made changed to loops and added homework