adapted the example to match the article