chapter 1 notes for debugging