add modifying and reading sample