Fix all the new tutorial examples so they compile ...

.. and give expected results.