writes the book