source code in the book