<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def index(self, element: Element) -> int: """ Return the index in the array of the first item whose value is element. It is an error if there is no such item. 0 """


        from refract.refraction import refract
        return self.content.index(refract(element))