What was the purpose of the Black Codes? A: to restrict the rights of formerly enslaved people B: to provide formerly enslaved people with the ability to vote C: to ensure freed Black people would receive equal pay D: to allow formerly enslaved people to buy property