A simple neural network for problem 19.4 of Russell & Norvig's AI book.