expand inheritance example