Bayesian Modeling Using Latent Structures