Complex sentence: Like the hero, Max, the author grew up in Chicago and he partly based his character on his own childhood, for example Greenburg hated maths lessons, and he has Max losing his super powers if he comes across a math problem.
Split into simpler sentences: Like the hero, Max, the author grew up in Chicago and, in part, he based his character on his own childhood. For example, Greenburg hated math lessons, and in his stories, Max loses his super powers if he comes across a math problem.