Read the sentence.

Walking in the sand, Mary stepped on a shell that scratched her foot.

What type of phrase is "walking in the sand"?
A.
gerund
B.
participial
C.
noun
D.
verb