Write_Read_sm