Fry discovers a drawing of Leonardo da Vinci's fabled lost invention hidden in the inventor's beard that Farnsworth had kept. Farnsworth decides to examine The Last Supper and discovers that the image of Saint James was painted over that of an ancient robot. The Planet Express crew go to Rome, enter Saint James' crypt and find the robot, Animatronio, who seemingly dies before he can reveal any information. Further clues and investigation lead the crew to the Pantheon, where they uncover Leonardo's secret workshop filled with all his inventions. Animatronio suddenly reappears, having faked his death, and tries to kill the crew to keep the discovery a secret, but unwittingly reveals that all of Leonardo's inventions assemble to form a spacecraft. Fry and Farnsworth enter the craft and are taken to Vinci, a planet inhabited by humanoid intellectuals including Leonardo himself, who came to Earth as a means to escape being bullied as the stupidest among his peers, but became infuriated by how much more stupid its inhabitants were. Leonardo uses his missing drawing to build a giant machine designed to kill his tormentors, but Fry sabotages it before it can do so. As a last resort, Leonardo pulls a lever on the machine which drops a giant cog on him and crushes him to death. Fry and Farnsworth then take the spacecraft back to Earth.