Added socket class for server program