Completed Java Sockets Basic exercise