rewrite Module#sub_classes method.