Add command pattern example