What was the mission of NASA?

NASA's original mission was to beat the Russians to the moon, which they did. Now, however, they are devoted to studying and researching space.