<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add(self, key, value):
 """Add an entry to a list preference Add `value` to the list of entries for the `key` preference. """

        if not key in self.prefs:
            self.prefs[key] = []
        self.prefs[key].append(value)