A application demostrates how to use the state machine to design the application logical.