Interaction of photons and electrons