Documentation with book logic