Friendships and overlapping group memberships evolve together in a dynamic model. — Synthesis