more work on chapter 3