<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dict(self):
 """ Return key-value pairs as a dictionary. """

        return {k: getattr(self, k) for k in self.__class__.defaults}