add more examples for Middleware