Which of the following is an example of kinetic energy changing into potential energy?

A. A fruit falling from a tree
B. A box sliding down a ramp
C. A car moving when the accelerator is pressed
D. A child on a swing slowing down as she swings upwards