Dynamics of Rigid Body Systems