Luckily there exist multi-line comments and that the code provided are two short snippets that aren't really useful. No, what this article desperately needs is an actual implementation which can be referred to when needed.
Out of curiosity, what parts did you feel were unclear?