When an astronaut training for a trip to Mars is mysteriously killed inside a Mars simulation, Castle and Beckett don spacesuits to investigate. But when they discover no one inside the sealed simulation could have committed the murder and no one from the outside could get in, the case takes a shocking turn.
Beckett: Are we seriously about to interrogate a computer?
M.I.R.A.: Detective, the word "interrogate" implies you believe that I am guilty of something. Of what do you think I am guilty?
Castle: Well at least she's not asking for a lawyer.
Castle: I wanted to go to Mars, not die on Mars.
Beckett: Wait a minute: we're not on Mars, we're on Earth.
Javier: Wait, your saying the computer tried to kill you?
Castle: Yeah, just like in 2001. Kubrick was right: AI is a bad idea.
Immediately after parodying the Star Trek opening voiceover, Castle and Beckett are let into Newton Endeavors by a security guard using the code "4747". Occurances of the number 47 have been inserted into the Star Trek series and movies since 1990 in dialogue, signs, and labels as an in-joke.