tweaking the source code for Figure 10.4 for hack day / fun