Fix up some examples
support type parameters