FX has ordered the limited series “Class of ’09” starring Brian Tyree Henry and Kate MaraVariety has learned.

The one-hour drama series will air exclusively on FX on Hulu and has received an eight-episode order. The show is set in a near future where the U.S. criminal justice system has been transformed by artificial intelligence. It follows a group of FBI agents who graduated from Quantico in 2009 and are reunited following the death of a mutual friend. Spanning three decades and told across three interweaving timelines, the series examines the nature of justice, humanity and the choices people make that ultimately define their lives and their legacy.

Henry will play Tayo Miller, one of the most brilliant and unorthodox Agents ever to join the Bureau, a man who seeks not merely to make his mark on the institution but to remake it entirely. Mara will play Amy Poet, a woman who never imagined joining the world of law enforcement and finds herself at the center of its most pivotal moment of transformation.

The show boasts several key players from “American Crime Story” behind the camera as well. Tom Rob Smith, who wrote “The Assassination of Gianni Versace,” will serve as writer and executive producer on “Class of ’09.” “ACS” and “Pose” executive producers Nina Jacobson and Brad Simpson will also executive produce the new series, with Nellie Reed producing. FX Productions is the studio.

“’Class of ’09′ brings together an incredible team of artists who have contributed to several of FX’s most distinctive and successful series from ‘American Crime Story’ and ‘Pose’ to ‘Atlanta’ and ‘A Teacher,’” said Gina Balian, president of original programming for FX. “With a story from Tom Rob Smith, produced by Nina Jacobson and Brad Simpson and starring Brian Tyree Henry and Kate Mara, ‘Class of ’09’ is primed to reimagine the course of justice in this unique and timely thriller.”

Henry is best known for his starring role in the hit FX series “Atlanta,” which earned him an Emmy nomination in 2018. He also received an Emmy nod in 2017 for his guest role on “This Is Us.” On the feature side, he has starred in “If Beale Street Could Talk,” “Godzilla vs. Kong,” “Spider-Man: Into the Spider-Verse,” and the upcoming Marvel film “The Eternals.”

Mara most recently starred in the FX on Hulu drama “A Teacher.” She previously appeared in  “Pose,” “American Horror Story,” and “Nip/Tuck” at FX as well, and has previously starred in shows such as “House of Cards.” Her film roles include “Shooter,” “We Are Marshall,” and “Brokeback Mountain.”

Henry is repped by CAA, JWS Entertainment, Jill Fritzo PR and Jackoway Tyerman Wertheimer Austen Mandelbaum Morris & Klein. Mara is repped by WME, Viewpoint, Mosaic, and Sloane Offer. Smith is repped by CAA and Goodman Genow. Jacobson and Simpson are repped by CAA and Ziffren Brittenham.