added an example of inheritance