build a simple chat application