When the surviving spouse dies, the residual assets are dispersed in accordance with the conditions of the trust. The assets under the credit shelter trust, including any gain in value during the surviving spouse's lifetime, pass to the heirs, free of the estate tax.