Moore And Mealy Both Machine Example