write demo