add a demo of chain of responsibility pattern.