add generics sample