Alice's Adventures in Wonderland
The book relies on the fanciful tale as a backbone, but running throughout the novel (as well as its sequel, Through the Looking Glass) are logic-problems and mathematical jokes. These were inserted by Carroll, a mathematician, for both amusement and edification.
"The tale grew in the telling," Carroll reports. He used to take his superior's little daughters rowing and on picnics, and he made up the Alice story to entertain them. The setting of the book, and much of the imagery, was influenced by Carroll's family connections in the area around Sunderland in north-east England, which he visited frequently.