magento code samples