code testing Chapter 8