Read the following sentence and determine which option correctly punctuates it:
While Jenny was preparing dinner she realized she had forgotten to buy some ingredients.