Which sentence has the punctuation antecedent agreement

"I need to buy some groceries, such as apples, oranges, and bananas."