code: def volume(self):
          
          volume = ((np.pi * self.primitive.radius ** 2) *
                    self.primitive.height)
          return volume
docs: The analytic volume of the cylinder primitive.
  
          Returns
          ---------
          volume : float
            Volume of the cylinder