Implemented a couple of Request objects to sort out the communication between the client and server