CANON CITY, Colo. (AP) — The Colorado Department of Corrections will spend about $4.7 million to build outdoor recreation yards at the state’s highest security prison.

The move is part of a settlement to a class-action lawsuit by prisoners at Colorado State Penitentiary in Canon City. They argued it was unconstitutional to deny inmates outdoor exercise.

READ MORE: Protest Over Masks In Schools Forced Jefferson County Public Health To Shut Down

A federal judge gave initial approval last week.

READ MORE: 3 Searchers Injured By Rockfall On Capitol Peak During Search For Missing Climber

Amy Robertson of the Civil Rights Education and Enforcement Center, an organization involved the suit, says inmates will be able to use three outdoor yards at the prison. She says inmates used to exercise in what amounted to a concrete cell with a small opening to the outside.

Officials will also move the highest security inmates to a different prison in Sterling, where they will be able to exercise outdoors for the first time.

MORE NEWS: Englewood Drinking Water Tests Positive For E. coli, Boil Order In Place

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)