Setting up inheritance structure for MADS classes