The Theory of Photons and Electrons