Add sample to demo how Generic Type be used to implement the generic logic on different types