basic chat application implemented