Example code for software design patterns workshop