Generics lecture code