Working through chapter 6