In the first episode, in which the time machine winds up in the year 1,000,000 B.C., a tribe of cave people select Ralph as their king for a day. But the gang wonders why the previous kings had such a short reign. The answer when revealed may lead to Ralph's doom unless Fonzie and the gang step in to help him.