Why the code in Chapter 6 of User Guide does not work?

Look at this thread.
Stéphane.