Added graphical model and derivations