NEW ORLEANS – Euric Cain, the man suspected of shooting a Tulane medical student and then kidnapping and raping a couple less than a day later, agreed to a 50-year sentence at the last minute Monday morning, just as a trial was set to begin.

The plea agreement covers charges for both crimes.

Cain, 22, faced charges including attempted murder for the shooting of medical student Peter Gold in the Lower Garden District last year and six counts of aggravated rape, three counts of aggravated kidnapping and three counts of armed robbery with a firearm.

Cain recently rejected a similar plea deal in return for guilty pleas on all three counts.

The Orleans Parish District Attorney’s Office said at the time that it would keep the offer in place until jury selection for the trial. Gold and the other victims all accepted the terms of the plea offer.

The rape charges stem from allegations that Cain carjacked a couple who were getting into their vehicle near Louis Armstrong Park, took them to an abandoned building in the Desire neighborhood and raped them.

Police said DNA evidence and surveillance video of Cain using one of the rape victims' credit cards tied him to the crimes.

Police arrested Cain three days after the assault on Gold in the Lower Garden District. The medical student was shot at close range in the abdomen after attempting to intervene in an apparent armed robbery.

New Orleans Advocate staff writer John Simerman contributed to this report.