Code snippets from some slides, not all of the exercises yet