Added code to turn on the socket

For the next tutorial.