Algorithmic State Machine Chart - Mealy Model