Kinematics and Dynamics of Machinery