Completed code through Section 5.4 (within Chapter 5) in book.