CHEYENNE, Wyo. (AP) — The final defendant connected to the death of a man in a hotel room has accepted a plea deal.

36-year-old Joshua Bowen pleaded no contest to second-degree murder on Monday in Laramie County District Court.

Bowen and Dagoberto Ontiveros were charged with first-degree murder last December after the owner of the Big Horn Motel found 48-year-old Anthony Hayward dead in his room. Ontiveros and Bowen were accused of killing Hayward in an attempt to rob him.

Ontiveros pleaded no contest to second-degree murder in July.

Prosecutors say they plan to recommend sentences of 20 to 30 years in prison for both men.