It is the last day of school and Lisa has no one to sign her yearbook; Bart on the other hand is quite popular. Flanders offers Homer his Little Pwagmattasquarmsettport beach house for a few days, since he has jury duty and won't be able to use it. Lisa worries about not having a friend to bring. Bart brings Milhouse, making Lisa feel depressed. Lisa decides not to bring any of her dorky things so that she can redefine her identity. She gets new clothes and searches for kids with whom to play. She finds a bunch of local kids that seem to like her for whom she is. To make her feel even more special, they reject Bart in favor of her, making Bart jealous. Meanwhile, Homer sets out to buy illegal fireworks. Lisa is acting exactly like Bart when she hangs out, infuriating Bart and he decides to sabotage her friendships. He shows them a yearbook, revealing her as a nerd. She is humiliated and angry with him. He feels bad, so he tries to win back her friends. Even though they've found out she is a nerd, it turns out that they don't mind and they all sign her yearbook.