How do I rotate linkage assembly?

 

I have a stick figure 4 bar linkage on the drawing sheet.

I have only been able to rotate the whole linkage assembly

as one unit with no flexibility in the revolving joints.

How do I link the lines so they rotate in their proper orientation?