CALDWELL, Idaho (AP) — A Nampa man police say moved the body of a woman who was beaten to death has been sentenced to a rider treatment program with an underlying sentence of six years in prison.

The Idaho Press-Tribune reports 22-year-old Jorge Luis Garcia was sentenced Wednesday. He pleaded guilty to failure to report a death in connection to the killing of 36-year-old Selena Thomas in August 2014. In the rider program, Garcia will receive treatment and education at a minimum security prison.

Thomas was beaten to death with a hammer by her 40-year-old boyfriend Alfredo Martinez. Garcia was accused of moving the body from a closet to the trunk of a vehicle. Martinez and two others buried Thomas' body in a cornfield. Martinez is serving 20 years to life in prison.