code from books