During his last year at his college, he helped out at an elementary school called Hillside School and this gave him an idea to make his first book, Sideways Stories from Wayside School. But he generally gets ideas from his brain not surroundings or from his life.
When he writes a book, he has three rules which he always does.
First, he works in his office everyday. He never allows anyone to come into his office even his family because it makes him hard to think of good ideas and breaks the spell. But he only allows his dog and cat to come in and stay.
Second, he writes about 2 hours a day. If he works more than 2 hours, he can't think of any good ideas so it makes him waste time. Sometimes, when he read agian what he wrote, he was surprised that he thought of such a brilliant idea.
Last, he never tells anybody what he is writing about until he finishes his book.
I was little bit surprised that he has rules something like these. And what I think a reason why he is such a good writer is that because he always thinks a lot and then starts to write.