Define magento run code, and type