Rewrite Rules: What and Why