code from hw3 and online SVM package