exchange of avatars : solution formalisation