Up to eight electrons may exist in the atom's second shell. An electron may "drop" from an outer shell if an inner shell is not full. This results in the release of energy in the form of a photon.