Modify analyze_share_structure to return enrollment and share structure