<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dict(self):
 """ Return a dict of the users. """

        users = dict(users=list())
        for user in self:
            users['users'].append(user.to_dict())
        return users