Adding write and read csv method