Created loop to output family members and their respective roles