Mass bouncing on a spring