After their computer and TV have been stolen, Spencer starts developing a security robot. At first, he builds one that blinds intruders, but takes it apart after it blinds Carly. He then makes one that shoots corn at intruders, but it malfunctions and attacks Carly, Freddie and Spencer. They try to have it focus on Mrs. Benson and unplug it, but Spencer doesn't manage to pull the plug out of the outlet before the machine runs out of corn, so Mrs. Benson is heavily pelted with corn. Meanwhile, Sam and Gibby open a secret restaurant named Gibby's in the basement at school. Bully Billy Boots, who just got out of juvie, harasses and irritates Gibby. Sam tries to diffuse the situation by sending Gibby to go on a walk and trying to talk to Billy, but when Gibby returns later, Billy attacks him and Sam beats up Billy with a Butter sock. The next day, Billy tells Mr. Howard about the restaurant and hopes it gets shut down. Even though Principal Franklin, one of Gibby's customers himself, agrees that the restaurant violates school rules, he allows Sam and Gibby to keep running it in secret as soon as Mr. Howard is out of earshot.