add a main class