add the readData member funtions.