<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, data):
 """Update the current memory record with the given data dict. Args: data (dict):
 Data dictionary to update the record attributes with. """

        for key, value in data.items():
            setattr(self, key, value)