Upd main class