Machine Learning: tutorial exercises, hw1, and hw2