copy version of finite automata

copy version of finite automata