Understanding difference between Moore and Mealy