code illustrating the approx_posterior object..