Finished socket example