added demo socket class