Take for example the two sentences:
"I was at the park and I was wondering about the future."
"I was at the park and was wondering about the future."
I hear the two being used interchangeably in spoken English all the time. However, are they both grammatically correct?