After earning a Sc. D. degree in astronautics from the Massachusetts Institute of Technology, Aldrin was selected as a member of NASA's Astronaut Group 3, making him the first astronaut with a doctoral degree. His doctoral thesis was Line-of-Sight Guidance Techniques for Manned Orbital Rendezvous, earning him the nickname "Dr. Rendezvous" from fellow astronauts. His first space flight was in 1966 on Gemini 12 during which he spent over five hours on extravehicular activity. Three years later, Aldrin set foot on the Moon at 03:15:16 on July 21, 1969 (UTC), nineteen minutes after Armstrong first touched the surface, while command module pilot Michael Collins remained in lunar orbit. A Presbyterian elder, Aldrin became the first person to hold a religious ceremony on the Moon when he privately took communion.