commit the class