Simple example of FSM ON-OFF