Create state-machine-test2.js