How to clone the group plugin?

Has anybody managed to clone the group plugin?

If so, would you share the experience?

Thank you in advance.