added chat class