Add example for creating a rule.