3.3 The Helmholtz machine