not a good example of inheritance