adding sample_latent_vars2. Needs more testing to verify results