implemented PeerTransfer.java