final Chapter 7 debugging