Commit a class