What contributed to the implementation of Jim Crow laws?

A.
the presidential election of 1872
B.
passage of the Fourteenth Amendment
C.
the end of Reconstruction
D.
repeal of Black Code law