<Tr> <Td_colspan="2"> The Office (U.S. season 8) List of The Office (U.S. TV series) episodes </Td> </Tr> <P> "Spooked" is the fifth episode of the eighth season of the American comedy television series The Office, and the show's 157th episode overall . The episode originally aired on NBC in the United States on October 27, 2011 . It was written by Carrie Kemper, sister of cast member Ellie Kemper, and directed by Randall Einhorn . The episode guest starred David Mazouz . </P> <P> The series--presented as if it were a real documentary--depicts the everyday lives of office employees in the Scranton, Pennsylvania, branch of the fictional Dunder Mifflin Paper Company . In the episode, Erin Hannon (Kemper) works to make a spooky, non-childish Halloween party with help from Gabe Lewis (Zach Woods). Dwight Schrute (Rainn Wilson) becomes friends with Robert California's (James Spader) son (David Mazouz), and Pam (Jenna Fischer) and Jim Halpert (John Krasinski) debate the existence of ghosts . Meanwhile, Robert figures out everyone's deepest fears and tries to culminate a ghost story . </P> <P> "Spooked" received mixed reviews, although many critics complimented Ellie Kemper's performance . According to the Nielsen Media Research, "Spooked" drew 5.53 million viewers and received a 2.9 rating / 7% share in the 18--49 demographic . The episode ranked as one of the lowest - rated episodes of the series to air on Thursday and ranked third in its timeslot . </P>

Who plays california's son in the office