Stub SVM from stackoverflow question