creates a smarter Cart (Iteration E1, Ch. 10)