Use generics in sample snippet.
Merge pull request #114 from FGtatsuroWork/grouplist

Use generics in sample snippet.