contestada

What is the gerund in this sentence As they were waiting for the bell to ring, the chattering students were complaining about the new regulation for wearing hats at school.