Snippets of code I wrote while exploring Scala