Input (grade 9): It was rebuilt as a more impressive structure containing thirty altars.
Output (grade 6): It was rebuilt as a bigger building, with thirty altars.