Solve Grocery List array problem