API:Rollback/Sample code 1