Created grammar and reasoner classes