to study design pattern