more work on chapter 4