Define And Compare Moore And Mealy Machines