class project for socket messaging in Java