add: write method has been added.