Code for my research project involving Peer-to-Peer Networks