Added working version of socket programming.