Quantum mechanics not only solved the problem of the stability of atoms and the nature of spectral lines; it also brought chemistry into the framework of physics. With the electrical forces among electrons and atomic nuclei already known, the Schrödinger equation could be applied to molecules as well as to atoms, and allowed the calculation of the energies of their various states.