Create a Python class called 'Rectangle' with attributes 'width' and 'height', and methods 'get_area' and 'get_perimeter'.
user
```python
class Rectangle:
    """Represents a rectangle."""

    def __init__(self, width, height):
        self.width = width
        self.height = height

    def get_area(self):
        """Calculates the area of the rectangle."""
        return self.width * self.height

    def get_perimeter(self):
        """Calculates the perimeter of the rectangle."""
        return 2 * (self.width + self.height)```
assistant