Listing 8.24
Finish chapter 8