Added discrete and gaussian cpds.