How Costco has managed to thrive in the age of Amazon