Updated code listings for Chapter 8