Setup main class structure