Created a class for wrapping a socket client