separate main class