Source code and figures for Chapter 10