attached to a horizontal spring