init graphical models assign3