The figure below illustrates an electron with initial energy of $-10 \mathrm{eV}$ moving from point $A$ to point $B .$ What change accompanies the movement of the electron?
(A) Absorption of a photon
(B) Emission of a photon
(C) Decrease in the atom’s work function
(D) Increase in the atom’s total energy