Understanding Absorption and Emission of Energy in Atoms