<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def volume(self):
 """ The volume of the primitive extrusion. Calculated from polygon and height to avoid mesh creation. Returns volume: float, volume of 3D extrusion """

        volume = abs(self.primitive.polygon.area *
                     self.primitive.height)
        return volume