A block of mass m is projected vertically downward with speed u from a height h above the upper end of a vertical spring of force constant k. Ignoring air resistance, derive an expression for the maximum compression x of the spring in terms of m, g, h, u and k.