New method: write_columns