Costs and Competition in Retailing