Machine Learning Ex2 Solutions