Simple implementation of chain of commands pattern