What made it possible for some slaves to be able to buy their freedom