pulled out 'get_inheritance_sequence' from 'get_complete_class'