Machine Learning: Exercise 6