First version of book generation.