create STATE MACHINE / TURING MACHINE