code snippet about design pattern