<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 analytic volume of the cylinder primitive. Returns --------- volume : float Volume of the cylinder """

        volume = ((np.pi * self.primitive.radius ** 2) *
                  self.primitive.height)
        return volume