An elementary but rigorous treatment is given of the Bohr model of hydrogenlike atoms in which first-order corrections are made for both the finite mass of the nucleus and for the relativistic motion of the electron. Particular attention is paid to the approximations necessary to obtain the energy levels first given by Sommerfeld.