MainClass and HasParser interface