Dynamics of Machinery