The school teacher;s last name is on the whiteboard as Mr Dick, then later he's called Philip: a clear reference to Philip K. Dick, upon whose short stories this series is based.
This episode owes a lot to the Hollywood dramatisations of "The Body Snatchers" (1955) by Jack Finney.