Added the while statement

Found out how to effectively use the while statement