Assignment 3: Unsupervised Learning and Probabilistic Models Solution