Add an example for `addRule`.