To study the oscillations of a rubber band and a spring