tests on writing, do not compile
Tests : index out of range :( Why?????
tessts : fail in writing the file