In Gothic architecture, the main purpose of the flying buttress was to

A. provide decorative interest.
B. create wall space for windows.
C. create vaults.
D. distribute weight properly.