Add app of StateMachineDemo