Added a function to return a list of tuples that represent membership information