Input (grade 10): Originally there were two courtyards inside and residential buildings against the walls.
Output (grade 4): There were two courtyards inside and houses against the walls.