add inheritance and test case