there could be multiple rules on multiple lines. we need a addToContents() method for nonterminals so that we can add additional rules without overwriting the old ones.