Implemented the ChatStore class.