Groundwork for nonterminal class