update on learning algorithm (one algorithm -> one class)