chapter 16: listing 1