generics sample and slides