Changed files vector from pointers to Files objects