Working while loop
Equilivent for loops
Added homework