added an attribute and added inheritance