add a simple example of socket programming in ruby