added changes to chapter 3