Rewrite exiting Magento models

To rewrite exiting Magento models, you can add the following snippet to your modules config.xml:

In this case Mage_Checkout_Model_Session and Mage_Checkout_Model_Type_Onepage are rewritten.