it was a city of poverty that stretched on for miles , packed with as many as its walls could hold , where the only thing to keep its citizens from spilling into the waters was its dock that stretched from one side of the city to the other .