<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extend(self, values):
 """Extend the array, appending the given values."""

        self.database.run_script(
            'array_extend',
            keys=[self.key],
            args=values)