Load main class