def area(rect):
    """
    Computes geometrical area for Areas and Rects

    Parameters
    ----------
    rect : Area, Rect, Namedtuple
        Object that needs area calculation done

    Returns
    -------
    int
        The area of the object
    """
    return rect.width * rect.height
