2001 ford taurus engine light flashing with car shaking & dying when idles

It turned out to be a coil pack causing the cylinders to misfire. Along with the fact of getting a new heater core.