Simple implementation of a command pattern design.