work on chat class