When external forces are applied, the amount of stretching or compression
depends on the properties of the spring. For the simple spring, this is just
the spring constant k, and the restoring force is given by F = -kx.

If the object is completely flexible, it will return to its original configuration
when external forces are removed. If want to model puddy, which deforms, we
would need a more complicated model of the spring.