Tutorial state machine classes