Implementation of simple chat