programming exercises for machine learning course