inheritance examples