commit after modifying the main class