grouped shared code examples