Added inheritance example code