Please check out the updated simulation.
You can drag objects at the center (at the bottom) to the end of the spring. It will be attached to the spring.
There are n=8 objects for you to attach to the spring.
Please check out the attached image for illustraton.