the tombs was actually four prisons , surrounding a rectangular courtyard one wing for men , one for boys , one for women , and the last for witnesses , who were sometimes also incarcerated pending trial .