Samples of Design Pattern Implementation