Episode 28 of "How I Met Your Mother"
s02e06 Aldrin Justice
Title: Aldrin Justice
Original Air Date: 10/23/2006 on CBS
Plot Outline:
While Barney makes it his job to satisfy Marshall's disgruntled law professor, Lily goes to work for Ted's architecture company and tries to teach Ted's big boss a big lesson. Barney comes to the rescue when he tries to satisfy Marshall's sexy, older and newly divorced law professor in the bedroom so she stops taking her divorce out on her class. Meanwhile, Lily takes a job at Ted's company and tries to teach the boss a lesson after he is mean to Ted. After seeing the extent that Lily is willing to go for him, Ted is inspired to pitch his own idea.