Release 1: write to file