A mass m is hung on an ideal massless spring. Another equal mass is connected to the other end of the spring. The whole system is at rest. At t=0, m is released and the system falls freely under gravity. Assume that natural length of the spring is L0, its initial stretched length is L and the acceleration due to gravity is g. What is distance between masses as a function of time ?