added determineBook method