providing an example of writing chunk files