unit1Read and write