Code examples for http://pavelfatin.com/design-patterns-in-scala/