input: Write a python function to calculate the area and perimeter of a rectangle using a class.
  assert Rectangle(2, 3).area() == 6
  assert Rectangle(2, 3).perimeter() == 10
  assert Rectangle(5, 10).area() == 50
  assert Rectangle(5, 10).perimeter() == 30
output: class Rectangle:
      def __init__(self, width, height):
          self.width = width
          self.height = height
  
      def area(self):
          return self.width * self.height
  
      def perimeter(self):
          return 2 * (self.width + self.height)