chapter 3 corrections and code