Created a ServerConnection class