add design pattern pdf