Practice of Design Pattern