Adding a short example after explaining the part of the method
Illustrating your method with a brief example is perfectly acceptable, especially if you do it in a reader-friendly way. Indeed, paragraphs often start with a "topic sentence" (which introduce the main idea, e.g. a concise description of your method), followed by some "supporting sentences" (which substantiate your main idea, e.g. by providing examples), before ending with a "concluding sentence". Such a paragraph structure enhances readability - so go for it!