Update Chap. 7 source code from the book