Mediator Design Pattern C