edit lecture: add haddock example