a tiny example to show if the state machines are working