add inheritence of base_class