Apple at 50: How the company became so profitable