Apple CEO Tim Cook plans to give away most of his fortune