Chapter 6 while loop