Understanding how different building types perform in earthquakes