initialize the main class