init main class