dangerous machinery. The slaves were forced to reside in barracoons, where they were crammed in and locked in by a padlock at night, getting about three to four hours of sleep. The conditions of the barracoons were harsh; they were highly unsanitary and extremely hot. Typically there was no ventilation; the only window was a small barred hole in the wall. Cuba's slavery system was gendered in a way that some duties were performed only by male slaves, some only by female slaves. Female slaves in Havana from the 16th century onwards performed duties such as operating the town taverns, eating houses, and lodges, as well as being laundresses and domestic labourers and servants. Female slaves also served as the town prostitutes. Some Cuban women could gain freedom by having children with white men. As in other Latin cultures, there were looser borders with the mulatto or mixed-race population. Sometimes men who took slaves as wives or concubines freed both them and their children. As in New Orleans and Saint-Domingue, mulattos began to be classified as a third group between the European colonists and African slaves. Freedmen, generally of mixed race, came to represent 20% of the total Cuban population and 41% of the non-white Cuban population. Planters encouraged Afro-Cuban slaves to have children in order to reproduce their work force. The masters wanted to pair strong and large-built black men with healthy black women. They were placed in the barracoons and forced to have sex and create offspring of "breed stock" children, who would sell for around 500 pesos. The planters needed children to be born to replace slaves who died under the harsh regime. Sometimes if the overseers did not like the quality of children, they separate the parents and sent the mother back to working in the fields. Both women and men were subject to the punishments of violence and humiliating abuse. Slaves who misbehaved or disobeyed their masters were often placed in stocks in the depths of the boiler houses where they were abandoned for days at a time, and oftentimes two to three months. These wooden stocks were made in two types: lying-down or stand-up types. women were punished, even when pregnant. They were subjected to whippings: they had to lie "face down over a scooped-out piece of round [earth] to protect their bellies." Some masters reportedly whipped pregnant women in the belly, often causing