add inheritance-two code