Class inheritance for node_em and multivariate gaussian