The 40 minute talk will build up towards something like this code, focusing primarily on the clean() method.