public synchronized void agree(String x){
	Utils.out(pid,"x " + x);
	for ( int i = 1 ; i <= getNo(); i++){
	    if ( i == pid){
	        if ( i == 4){
		    while (true);
		}
		broadcast(Utils.CONSENSUS,x);
	    }
	    else if (collect(i)){
		x = buffer[i-1];
	    }
	    
	}

	Utils.out(pid,"decided " + x);
	
	
    }