exercise 6 on SVMs