Committing main class