Updated RulesCollection to use getters and setters