implemented write example.