The show’s writing staff visited California’s Chino Prison to learn about how cliques typically form and influences on social behavior in prison settings to give them inspiration for the series.