committing main class