add example for method params with generic