added Mealy machine
Moore and Mealy working bit