First version of chat application