Example statemachine from my talk and slides