More work on chapter 6