Howard dresses as Sheldon for Halloween at work, hurting Sheldon's feelings. When Howard does not apologize, Amy and Sheldon dress as Bernadette and Howard at Penny and Leonard's party, angering Bernadette. Sheldon and Bernadette later bond over their painful childhood memories. Leonard is upset that Penny does not seem to remember that their first kiss was on Halloween. Penny later admits she does remember, but does not like to think of their first kiss as an unromantic drunken hookup. She likes to imagine their first kiss was one they shared on Leonard's birthday, which pleases him.
After learning Sheldon went behind their backs to work with the military again, Leonard and Howard say Sheldon is like Thomas Edison, taking credit for others' ideas, while they are more like Nikola Tesla. Leonard and Howard bring in Barry Kripke to help create a better idea than Sheldon's, but Kripke goes to the military himself, cutting all three of them out. Meanwhile, Bernadette fears Ruchi is trying to steal her projects at work while she is on maternity leave and enlists Raj to spy on her. Though he finds proof that Ruchi may be stealing from Bernadette, Raj tries to defend Ruchi like a boyfriend would, pointing out Bernadette's hypocrisy as she would most likely have stolen from other people's projects as well. Ruchi is not happy about this and promptly dumps Raj.
Sheldon and Amy are surprised to find that Wil Wheaton's new Professor Proton show is actually very entertaining and that Wil had Howard on as a guest. On Howard's suggestion, Sheldon apologizes to Wil, mending their friendship, and tells him he wants to be on the show; but Wil asks for Amy. Sheldon tells her to do it, but she says she often doesn't do things to avoid upsetting him. Sheldon is horrified when he realises how selfish he has been, especially when he finds out that the men do the same for him. Sheldon encourages Amy to go on the show to inspire girls to pursue science while trying to control his obvious jealousy for her. Meanwhile, Leonard writes a book about a physicist that solves a murder, the protagonist Logan Dean is based on himself. Bernadette points out Logan's mean boss Illsa is similar to Penny, who thinks it is based on Bernadette, though Leonard does not correct her. However, Bernadette tells Penny the truth, upsetting her and making her mad at Leonard. After calling his mother for advice, Leonard learns that Illsa is actually like her; but abandons the book when he realizes he wrote romantic tension into the relationship between the characters.