Change: adding new entries.
Refactoring: renaming rules() to getRules() and cosmetics.