realworld example of command pattern - thanks doFactory