import java.util.Set;

public class ConObject{
    public String name;
    private Set<ConObject> connectedObj;
    
    ConObject(String name){
        this.name = name;
    }
    
    public Set<ConObject> getConnectedObjs(){
        return connectedObj;
    }
    
    public boolean isConnected(ConObject obj){
        return connectedObj.contains(obj);
    }
    
    public void addConnectedObj(ConObject obj){
        if(connectedObj.contains(obj)){
            return;
        }else{
            connectedObj.add(obj);
        }
    }
    
    public boolean removeConnectedObj(ConObject obj){
        if(connectedObj.contains(obj)){
            connectedObj.remove(obj);
            return true;
        }else{
            return false;
        }
    }
}
@@ -1,8 +1,34 @@
+import java.util.HashSet;%0A
 import j
@@ -186,24 +186,73 @@
 ame = name;%0A
+        connectedObj = new HashSet%3CConObject%3E();%0A
     %7D%0A    %0A 

fix the initialize