updated reading and writing data tutorial