add inheritance example