Code durign LDD learning