How is the gerund functioning in the sentence: They had fun skiing. A) subject B)direct object C)object of preposition D)predicate nominative