adding table of contents, revisited program