Not finished yet, the code is broken in loadDataFromFile.