Cours design pattern