abandoned the original idea to have a vector of TExpense objects. In fact this is just replication of the XML structure. the idea was to avoid multiple readings from XML file, thus one needs some structure replicating it which is filled once while reading the XML. however the drawback is that one has to create extra structures, TExpense objects in this case and define all the interfaces. The bottom line is that XML file IS  this structure. why replicating.