finite-state machines

finite-state machines