Implemented a simple chat service.