Code snippets from my coursework.