solution to grocery list challenge