actually generate the book