def define_attrs(required, extra=[]):
    """Create __slots__ by adding extra attributes to required ones"""
    slots = tuple(required + extra)
    attributes = tuple(required)
    return slots, attributes
