This is the example of Magento Observer