Added all visible code from the presentation, trying to make a toy
version of the core.