Added demo for inheritance