Added Classes to handle to socket communication