class Spring { int from; // from which particle int to; // to which particle float k; // spring constant float damp; // damping constant float restLength; // could it be just float? Spring () { from = to = 0; } }