adding a "set matches" method to the file object