Tutorial: http://www.pierrefay.com/magento-developper-guide-howto-tutorial-5