Finish Programming Exercise 6: SVM.