Committing at the end of class