complete implement simple chat