add an example of chain of responsibility pattern.