added socket to example