add a simple demo of command pattern.