Added main class for chat.