Instant messaging chat writen in java as part of network classes