A cylinder of mass M and density d1 hanging from a string