A child, who is nonverbal, pinches his mother because he has a history of gaining his mother's attention for this behavior. A behavior analyst teaches the child to wave to his mother to gain her attention, rather than pinching. The behavior analyst then teaches the mother to ignore pinching and only pay attention to him when he waves to her. What is teaching the child to wave an example of?

A. Positive reinforcement
B. Shaping
C. Extinction
D. Negative reinforcement