read_sector() and write sector() implemented