Add inheritance example to readme [ci skip]