create design pattern