fixed the example as it did use a non-existent stopping criterion.