Tim Cook compared the cost of an iPhone X with a cup of coffee