def contains(self, other):
        """ Return true if the given shape is inside this rectangle. """
        return (self.left <= other.left and
                self.right >= other.right and
                self.top >= other.top and
                self.bottom <= other.bottom)
Return true if the given shape is inside this rectangle.