Data writing example.