[Lab 2] implemented filetransfer functionality