C Mediator Design Pattern