Mealy and Moore Elevator Machines