demo of adding and committing