Exercises from machine learning class