input: 
  class Rectangle:
      """A class to represent a rectangle with a given length and width.
      
      Examples:
      >>> rect = Rectangle(5, 3)
      >>> rect.area()
      15
      >>> rect2 = Rectangle(10, 2)
      >>> rect2.area()
      20
      """
      def __init__(self, length, width):
          self.length = length
          self.width = width
  
      def area(self):
          return self.length * self.width
  
output:     def perimeter(self):
          return 2 * (self.length + self.width)