Add generic demo, which can extract the type arguments at runtime.