add example for use of the request class