modify basic classes to test inheritance and type checking