Max Planck and the beginnings of the quantum theory