Adds table of contents to example.