Package fsm implements a simple finite state (Mealy) machine.