Complete the mealy FSM for lab 4.