groceries array exercise