BTW, my comment has been taken without context a half a dozen times already.
Set up rules for acquiring slaves, set up rules that make it OK to beat a slave to death, instruct slaves to obey even unjust masters.
Where is the commandment that forbids treating a human being as property?