- commit of the main class