Programming example for TURING MACHINE