WHAT if a shopping cart was a computer on wheels? And if it also analyzed your buying habits so it could guide you through the shop and offer you a special discount? Safeway, the third-largest grocer in the US, is testing such smart shopping carts in two of its chain stores.