Comparison between the chain of responsibility and command patterns