Cavity quantum electrodynamics with three