more work on chapter 6