Implementation of DFA, NFA and eNFA into classes