Created a Connection object to encapsulate the socket and it's responsibilities