What was the purpose of NATO?

A) to create accurate maps in case of a future war
B) to defend member nations against Soviet aggression
C) to monitor the detonation of atomic bombs
D) to coordinate military training for the Allies