Graphical Inference Modelling with Ruby