@Override
    public boolean equals(Object o){
        if(! (o instanceof Spring))
            return false;
        Spring s = (Spring)o;
        return myRestLength==s.myRestLength&&
       myObject1==s.myObject1&&
       myObject2==s.myObject2&&
       myStifness==s.myStifness;
       
    }