Changed fileData to class