printing an array of shared memberships