4.3 The Helmholtz machine