Chapter 2 and Appendices C and D.pdf