start implementation of chat functionality