Chapter 2 : Iteration 2 : According to the book (approximate)