main class init