added the examples based on the socket programming