You are in a laboratory conducting an experiment with a pendulum. The pendulum is a simple device consisting of a weight suspended from a string. As you pull the pendulum to one side and release it, you observe it swinging back and forth. You notice that the pendulum eventually comes to a stop due to air resistance and friction at the pivot point. Considering the motion of the pendulum, what type of energy transformation is primarily occurring as the pendulum swings from its highest point to its lowest point?
A) Kinetic energy is transformed into potential energy as the pendulum swings down.
B) Potential energy is transformed into kinetic energy as the pendulum swings down.
C) Thermal energy is transformed into kinetic energy as the pendulum swings down.
D) Electrical energy is transformed into potential energy as the pendulum swings down.