Implemented the chat feature