Implementation of attribute exchange by trial and error