pyramid main class