chatart main class