Numbering paragraphs hierarchy problem