Consider the situation shown in figure. Initially the spring is unstretched when the system is released from rest. Assuming no friction in the pulley