<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_dict(self, incomming):
 """ Set all rules from the `incomming` dictionary. """

        for key, val in incomming.items():
            if val and key in self._property_names:
                setattr(self, key, val)