Stack with generic