added chat history class