An author writes a novel about a young wizard who attends a magical school, detailing his adventures and friendships.What is the author's primary purpose for writing this piece?