Implemented an example of the Mediator pattern