add a simple example of writing binary