variational demo