A wheel of radius r and moment of inertia I about its axis is fixed at the top of an inclined plane of inclination θ as shown in the figure. A string is wrapped round the wheel and its free end supports a block of mass M which can slide on the plane. Initially, the wheel is rotating at a speed of ω in a direction such that the block slides up the plane. How far will the block move before stopping?