The first of two Iowa teens who pleaded guilty to first-degree murder after bludgeoning a Spanish teacher to death with a baseball bat was sentenced Thursday to life in prison with the possibility of parole after 35 years.

Willard Miller, now 17, and Jeremy Goodale, now 18, were both 16 when they were charged with the Nov. 3, 2021, slaying of Fairfield High School teacher Nohema Graber, 66, whose body was discovered in a city park, hidden under a tarp, wheelbarrow and railroad ties. Both teens pleaded guilty in April.

“Your horrific actions led to the death of Nohema Graber, and her family will never be able to fill that void,” Judge Shawn Showers said. The judge told Miller he would have considered sentencing him to life without parole if state law allowed such a sentence for a juvenile.

The killing rocked the southeast Iowa city of Fairfield, which has a population of less than 10,000 and is about 100 miles outside of Des Moines. Prosecutors said the teens attacked Graber in a park where she regularly walked after school. The motive for the killing was because she gave Miller a bad grade.

Prosecutors wanted life in prison for Miller, who was charged as an adult along with Goodale, with the possibility of parole after 30 years as part of a plea agreement. Goodale is set to be sentenced in August, but his attorneys have sought to delay the proceeding. Prosecutors will seek 25 years to life for Goodale under a plea agreement.

The pair will also be responsible for $150,000 in restitution to Graber’s family.

“This was a cruel, heinous act by two defendants,” Assistant Iowa Attorney General Scott Brown said during the sentencing hearing Thursday. “I cannot imagine anything really worse than to be attacked in the manner that she was, for what? A grade.”