Code listing updates for Chapter 7