demo for writing sequence files