Sample code to read, modify data and write in spreadsheets