Added inheritance sample code.