class spring { float d, k; }