Rewrite demo