Added source code from books.