Added inheritance_path method, changed fields_for_class method