Chain Of Responsibility and mediator pattern

adds example implementation of chain responsibility.