Uncommented the readData method