Sample code for design pattern study group