Some code for probabilistic graphical models class