Created NFA and DFA classes