add examples for inheritance