added FilePair class and related classes