Added example mediator code