added stan_sample wrapper function.