<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def magnitude(self):
 """ Returns the magnitude of the quaternion. """


    return math.sqrt(self.x ** 2 + self.y ** 2 + self.z ** 2 + self.w ** 2)