How is a spring an example of simple harmonic motion?