machine learning class programming exercises