Chapter 4: while loop