Select the sentence containing the gerund.

A. He taught the swimming class last summer.
B. He taught swimming last summer