added inheritance example