while loop

tested loop