<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_rule(self, name, properties):
 """ Set a rules as object attribute. Arguments: name (string):
 Rule name to set as attribute name. properties (dict):
 Dictionnary of properties. """

        self._rule_attrs.append(name)
        setattr(self, name, properties)