And the gains can be tax-free, too.