inheritance and crud operation