edit main class