Added parent_classes param