Chapter 5 code, extra information, and errata