What was the goal of Black Codes, or antebellum laws, in America following the Civil War?

A- to educate whites about the inequality that still existed after slavery ended

B- to eliminate white supremacy

C- to keep African Americans in a second-class citizen status

D-to assist in the achievement of equal rights for African Americans in America