Add rename() method in File class