add main class