Adding exercise 8 machine learning