study design pattern