Adding class to nfa and walk table.