After the Persian War, what did Sparta, Athens, and other Greek communities collect to ward off future external attacks?

A) slaves
B) corn and other grains
C) money
D) resources for building walls