working principle of spring in machine