by Petr: edited SVM section