add generics example