Make example work for copy+paste and run