A solid cylinder of mass M and radius R is connected to a spring as shown in the figure. It is placed on a rough horizontal surface. All the parts, except the wall are displaced slightly from their mean positions and released, so that they perform pure rolling back and forth about their equilibrium. Determine the time period of oscillation.
[Assume there is no slipping between the cylinder and the surface]