implement group_names function
Merge branch 'JFreegman-groupnames'