Creating a smarter cart