ruby: simple socket example