machine learning class exercises