Second screenshot
Final code for on which the article is based.