Completed function to display shopping list items