Todd gets transferred to Wayside School, a school that was accidentally stacked 30 stories high instead of 30 rooms sideways. He is assigned tries to Mrs. Jewels' class on the 30th floor, where he attempts to fit in with the class, usually with mixed results. However, due to his failure to cope with the school's unorthodox system of learning, Mrs. Jewels writes his name on the chalkboard and puts a checkmark next to it.
The teacher threatens that he will be sent home on the kindergarten bus. The class is about to be crushed by the trash compactor that was accidentally on the 30th floor and the machine would work every time the PA comes on, Todd's outbursts start, and Mrs. Jewls writes his name under the word "discipline" and sends him home on the kindergarten bus.
Mrs. Jewls and her class play dodgeball, and Principal Kidswatter tags Todd and is finally tagged. Mrs. Jewls pronounces Dana as class president. While Todd is sent home again on the kindergarten bus after he does more outbursts to Mrs. Jewls, the trash compactor is on again. Dana cries and tells Mrs. Jewls that she herself is the worst class president. Todd, however, has snuck outside Mrs. Jewls' classroom, and tells Maurecia and Mrs. Jewls and the students that he has to get them out.
Meanwhile, Todd saves them from being crushed by the trash compactor that was accidentally on the 30th floor and the machine would work every time the PA comes on. Finally, Myron has found the emergency shutoff. Back in Mrs. Jewels' class, Dana gives Todd a new desk, and Todd throws it out.