grammar_factory helper

Load in the grammar example from slides