Code for simple support vector machine app