- implement basic chat functionality