Electrons only exist in fixed orbits and not anywhere in between. Each shell has a fixed energy. When an electron moves between shells, electromagnetic radiation is emitted or absorbed. As energy of shells is fixed, radiation will have a fixed frequency. Later refined model to include sub-shells.