Using the while loop