It’s not strictly necessary, as the base Dataset 5 implements the __add__ method for you and defines the __getitem__, but for the sake of code clarity I would still recommend to derive your custom class from Dataset.