Old main class