cleaning up chapter2; about to add new examples
some edits to chapter 3