added socket example