renamed file according to class defined in it