Solution to Shopping list Exercise