Dilepton production from pion-pion annihilation in a nuclear medium