SMS: Probabilistic Graphical Models