Former prisons transformed for a second lease on life