Pulled out resolver to a variable,

in order to make it more useful for a documentation example.
Pulled resolver out into a separate variable,

in order to provide a good example for documentation purposes.