Added some code to each.

Chapter 3,
but mostly chapter 4