Updated inheritance example