Code from books.