Updates the example a bit.
Endpoints must now carry a service reference.