added inheritance in class section