Creating a smarter Cart