<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, iterable):
 """ Add each item from iterable to the end of the list """

        with self.lock:
            for item in iterable:
                self.append(item)