advance local inheritence example