Added an example of inline middleware as provided by Carl