 improvised engineering on the parts of everyone in the space program, in NASA, in the companies that built the various components of the capsule and the service module and the lunar module. One of the interesting facts about Apollo 13 and Apollo 8 is that originally NASA was not going to fly any missions out of Earth orbit without a lunar module.