Moore and Mealy machiens