A block of mass m, attached to a spring of spring constant k, oscillates on a smooth horizontal table. The other end of the spring is fixed to a wall. The block has a speed v, when the spring is at its natural length. How far will the block move on the table before coming to an instantaneous rest?