editing main class