Fey chose to play the character of Ms. Norbury in an attempt to undermine the stereotype that math is a male-dominated subject. She took lesson plans from a friend, who was a calculus teacher, to help her sculpt the script.