Mediation: a constructive solution