beginning of the File class (+ additional tests)