How to minimize capital gains tax.