Restrict voting--use of Literacy Tests and the Grandfather Clause
Labor contracts--keep former slaves in the fields to continue plantation labor
Maintain social hierarchy--punished those who paid blacks more for work as well as laws to control where blacks could live.
The Black Codes were a way to maintain social, political, and economic hierarchy with whites on top while moving from a slave system.
All of them sound about right