Design Pattern Boilerplate Code