Changes to ex1.  Creating new socket.