Moore to Mealy machine

Convert the following Moore machine to Mealy machine.

In Moore machine, each input symbol, have the pair of next state and the output.
For q0 output is 1, for q1 output is 0, for q2 output is 1, for q3 output is1.

So corresponding Mealy machine is as follows,