first attempt at Mealy maching. Has 'working' testbench