The code from the articles about Magento from tonysimpson.net