added the start of the chat class