Replace QuantityResult class by namedtuple in cart