adding chunck_write. First basic working prototype