Doc tweaks
Implemented article's example code