commandPattern json example
refactoring creating types