Code for our lab on generics.