added inheritance and testing for types of people