<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cross(self, vec):
 """Return the 2d cross product of self with another vector. Cross product doesn't make sense in 2D, but return the Z component of the 3d result. """


        return self.x * vec.y - vec.x * self.y