state machine experiments