"Sexual Harassment '' was written by B.J. Novak, who also acts on the show as Ryan Howard. The episode was the third entry of the series directed by Ken Kwapis. Kwapis had previously directed "Pilot '' and "Diversity Day ''. The inspiration for the episode was the NBC sexual harassment seminar that the cast and crew had to attend before the series began. Having both worked in office environments prior to filming The Office, Jenna Fischer and Angela Kinsey both noted that on the days of sexual harassment seminars, they would be harassed by their co-workers as a joke. This experience was added to the script for the episode. "Sexual Harassment '' introduces Michael 's catchphrase "That 's what she said, '' which writer B.J. Novak says was something he heard repeated in college. The "What has two thumbs and X? This guy '' joke also comes from Novak 's college days. Jenna Fischer later revealed that a good majority of Dwight 's exchange with Toby about female anatomy was improvised.
when did michael scott first say that's what she said
"Sexual Harassment '' "Sexual Harassment ''