RICHMOND, Indiana — An eastern Indiana teenager has been sentenced to at least two years in prison after telling a judge he helped three others establish an alibi in the fatal beating of another teen.

Wayne County Superior Court Judge Charles Todd Jr. sentenced 19-year-old David Maish on Thursday to eight years in prison with six suspended to probation for his role in the death of 17-year-old Caleb Woosley last May. Woosley was found dead in a Richmond alley. Court documents said he was struck 40 times with a baseball bat.

Maish was credited with 202 days of time served and 202 days of good time credit, the Palladium-Item reported (http://pinews.co/1NPkZOW). He pleaded guilty as part of an agreement that calls for him to testify in the murder trials of three others charged in the case.

The trial of 20-year-old Deandre Plant and 17-year-old Kore Buchanan is scheduled to begin March 23. Michael Pruitt, 17, is scheduled to go on trial April 27.

When Maish is released from prison, he will be on supervised probation until the cases against Plant, Buchanan and Pruitt are completed. Then his probation will become unsupervised.

Woosley's father, John Woosley, told Maish he hopes he gets his life back together.

"I've been able to look at God for forgiveness of Mr. Maish for what he's done," Woosley said.

In previous statements to police, Maish said Plant, Buchanan and Pruitt planned and committed Woosley's murder, meeting at Pruitt's home. He said he was invited to go along but declined.

Maish testified Thursday he supplied Plant, Buchanan and Pruitt with latex gloves before Woosley was killed and later helped them clean up and change clothes. He also admitted to helping them post pictures on Facebook to establish an alibi.