My attempt at creating a file transfer protocol