When did Jesus institute the sacrament of the Holy Eucharist?

A. When Jesus was crucified
B. When Jesus turned water into wine
C. When Jesus fed the five thousand people
D. When Jesus had the last supper with his apostles