Studying Java Chat project