simulation of a four bar system of linkages