initial work, chapter 2 and part way through chapter 3