Explanations for the two big code slides at the end.