Machine Learning Exercise 2