structure the new learning algorithm