error at the end of chapter 3