<P> While Michael angrily announces that he can no longer be friends with his staff and that he will never tell another joke again, Jim Halpert (John Krasinski) goads Michael into breaking his vow immediately, to the approval of Packer . Michael's attitude suddenly changes when he realizes that he is not in trouble, and that the lawyer's job is to protect him . After Packer tells a crude joke at the expense of Phyllis, Michael defends her, telling the entire office that he finds Phyllis attractive and that the only thing he worries about when he's near her "is getting a boner". </P> <P> Meanwhile, Pam Beesly (Jenna Fischer) waits with anticipation for her mother (Shannon Cochran) to arrive from out of town . Pam's mother arrives and asks in whispers (shushed by an embarrassed Pam), "Which one is Jim?" Michael stops Packer when he tries to share another inappropriate joke and concludes with his misguided thoughts on sexual harassment . </P> <P> "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 . </P> <P> When it came time to cast Todd Packer, the crew's first choice was David Koechner, who had starred alongside Carell in the hit 2004 comedy movie Anchorman: The Legend of Ron Burgundy . Production for the episode had to be delayed so that Koechner could be secured for the part . Novak noted that Koechner was one of the few actors who was "talented enough to make Steve Carell break up on set", a feat that he notes was "worth" the delays . </P>

When did michael scott first say that's what she said