Adding a classic implementation of the command pattern