First programming assignment for Probabilistic Graphical Models on Coursera