format the submitted questions
Merge pull request #11 from lauyeung/formatting-with-state-machine

Formatting with state machine