Add inheritance for all classes.