storing data from flat files in a object