finish Task E: A Smarter Cart