Commit for class