Dist class build by inheritance and not by composition