<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, attributes, prefix):
 """ Add the attributes with the specified prefix to the end of the attribute list. """


        self._contents += [Attribute(attr, prefix) for attr in attributes]