code examples for six group during TAM