<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def trace(self):
        '''the trace of the matrix'''
        return self.a.x + self.b.y + self.c.z