set up main class