Get the main class set-up