What author was still an English teacher at Maine's Hampden Academy when his first book was published?

Society Trivia Question: What author was still an English teacher at Maine's Hampden Academy when his first book was published?