simple socket example(not completed)