Ok, I got the master slave d flip flop (again the store input is the clock input) and C is the clear input
Connect them as you had in picture you posted, but single clock to all of them instead of pulses. If it goes wrong, post inside of the DFF
thanks