An example of how to implement the command pattern on iOS