Mediator pattern as inspired by Addy Osmani