finish the draft version of chatroom