Compilation checkpoint with gist code from the tutorial.