Chapter 10. Task E: A Smarter Cart.