Adding demo for revert()