added rename file sample code with comparator