instantiate the chat class