Simple program for using Java sockets